﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<Entregable.Models.Producto>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	NARS
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
   
   <div class="hero-unit"><h4><b>PRODUCTOS</b></h4></div>
    
    <table class="table table-striped">
        <tr class="success">
            <th></th>
            <th>
                Codigo
            </th>
            <th>
                Producto
            </th>
            <th>
                Marca
            </th>
            <th>
                Tipo
            </th>
         

    <% foreach (var item in Model) { %>
    
        <tr>
            <td>
               
                <%: Html.ActionLink("Editar", "Edit", new { id=item.Codigo }) %> |
                <%: Html.ActionLink("Detalles", "Details", new { id = item.Codigo })%> |
                <%: Html.ActionLink("Eliminar", "Delete", new { id = item.Codigo })%>
            </td>
            <td>
                <%: item.Codigo %>
            </td>
            <td>
                <%: item.Nombre %>
            </td>
            <td>
                <%: item.Marca %>
            </td>
            <td>
                <%: item.Tipo %>
            </td>
        </tr>
    
    <% } %>

    </table>
    
 

    <p>
        <%: Html.ActionLink("Crear", "Create") %>
    </p>

</asp:Content>

